xen/arm: p2m: Limit call to mem access code use in get_page_from_gva
authorJulien Grall <julien.grall@arm.com>
Mon, 16 Jul 2018 17:27:02 +0000 (18:27 +0100)
committerJulien Grall <julien.grall@arm.com>
Wed, 22 Aug 2018 15:33:10 +0000 (16:33 +0100)
commit7bb3a9ae34b95eb944217abc377242ccd66d5e7b
tree9de4a0d25c01bce7215ab3d91292abb2c4dfc5b0
parent0f11f3e7abf6465a8da8790af3f00518a74890fc
xen/arm: p2m: Limit call to mem access code use in get_page_from_gva

Mem access has only an impact on the hardware translation between a
guest virtual address and the machine physical address. So it is not
necessary to fallback to memaccess for all the other case (e.g when it
is not possible to acquire the page behind the MFN).

Signed-off-by: Julien Grall <julien.grall@arm.com>
Acked-by Razvan Cojocaru <rcojocaru@bitdefender.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/p2m.c